package com.mm.cme.kotlin_001.level01.i_000_basic_type

import com.mm.cme.kotlin_001.utils.pl

/**
 * Descriptions：字符串类型，以及字符串模板
 * <p>
 * Author：ChenME
 * Date：2017/7/15
 * Email：ibelieve1210@163.com
 */
val string_a: String = "hello"
val string_fromChars: String = String(charArrayOf('h', 'e', 'l', 'l', 'o'))

fun main(args: Array<String>) {
    pl(string_a == string_fromChars)
    pl(string_a === string_fromChars)

    val int_a: Int = 1
    val int_b: Int = 2
    pl("$int_a+$int_b=${int_a + int_b}")

    val string_raw:String="""原始字符串
    \t
 \n
\r
="""
    pl(string_raw)
    pl(string_raw.length)
}